<?php 
	header("content-type:text/html;charset=utf-8"); 
	ini_set("magic_quotes_runtime",0); 
	require 'class.phpmailer.php'; 
	try { 
		$mail = new PHPMailer(true); 
		$mail->IsSMTP(); 
		$mail->CharSet='UTF-8'; //设置邮件的字符编码，这很重要，不然中文乱码 
		$mail->SMTPAuth = true; //开启认证 
		$mail->Port = 25; 
		$mail->Host = "smtp.exmail.qq.com"; 
		$mail->Username = "liuy@pvc123.com";//此处填写自己的邮箱验证码 
		$mail->Password = ""; //此处填写邮箱密码
		$mail->AddReplyTo("liuy@pvc123","Nansion");//回复地址 
		$mail->From = "liuy@pvc123.com"; 
		$mail->FromName = "大塑MPE"; 
		$to = "yuliang@pvc123.com"; 
		$to2 = "huangjj@pvc123.com"; 
		$addressArr = array(
			"guozx@pvc123.com","zengyj@pvc123.com"
		);
		foreach( $addressArr as $value ){
			$mail->AddAddress($value);
		}
		$mail->Subject = "MPE有新的版本部署到Inet"; //主题
		$mail->Body = "有新的部署，请注意！此邮件是自动发送，请勿回复！"; //邮件内容
		$mail->WordWrap = 80; // 设置每行字符串的长度 
		$mail->IsHTML(true); 
		$mail->Send(); 
		echo '邮件已发送',PHP_EOL; 
	} catch (phpmailerException $e) { 
		echo "邮件发送失败：".$e->errorMessage(); 
	} 

